<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Dept.ascx.cs" Inherits="gdlmo.DNN.Modules.Dept.Dept" %>
<asp:repeater id="rptDept" runat="server">
	<HeaderTemplate>
	<table cellpadding="0" border="0" width="100%">
			<tr>
				<td align="left" valign="top" class="Subhead" width="60%">部门名称</td>
				<td align="left" valign="top" class="Normal" width="30%">部门类型</td>
				<td align="left" valign="top" class="Normal" width="10%">是否有效</td> 
			</tr>
		</table>
	</HeaderTemplate>
	<ItemTemplate>
		<table cellpadding="0" border="0" width="100%">
			<tr>
				<td align="left" valign="top" class="Subhead" width="60%">
					<asp:HyperLink NavigateUrl='<%# EditUrl("DeptID",DataBinder.Eval(Container, "DataItem.DeptID").ToString()) %>' Visible="<%# IsEditable %>" runat="server" ID="Hyperlink1">
						<asp:Image ID=Hyperlink1Image Runat=server ImageUrl="~/images/edit.gif" AlternateText="Edit" Visible="<%#IsEditable%>" resourcekey="Edit"/>
					</asp:HyperLink>
					<%# DataBinder.Eval(Container, "DataItem.Name") %>
					&nbsp;&nbsp;
				</td>
				<td align="left" valign="top" class="Normal" width="30%">
					<%# FormatDeptType(DataBinder.Eval(Container, "DataItem.DeptType").ToString()) %>
				</td>
				<td align="left" valign="top" class="Normal" width="10%">
					<asp:Image Runat="server" ID="imgActived" ImageUrl='<%# DataBinder.Eval(Container, "DataItem.IsActive", "~/images/{0:G}.gif") %>'/>
				</td>
			</tr>
		</table>
	</ItemTemplate>
</asp:repeater>
